package com.mine.modules.vm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 传感器
 * </p>
 *
 * @author xujf
 * @since 2024-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vm_sensor")
@ApiModel(value="VmSensor对象", description="传感器")
public class VmSensor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "传感器标识")
    private String code;

    @ApiModelProperty(value = "传感器名称")
    private String name;

    @ApiModelProperty(value = "别名")
    private String alias;

    @ApiModelProperty(value = "显示分组类型")
    private String groupId;

    @ApiModelProperty(value = "分类树id")
    private String treeId;

    @ApiModelProperty(value = "分类树Code")
    private String treeCode;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "值类型")
    private String valueType;

    @ApiModelProperty(value = "蓝上限（低风险）")
    private String blueUpper;

    @ApiModelProperty(value = "蓝下限（低风险）")
    private String blueLower;

    @ApiModelProperty(value = "黄上限（一般风险）")
    private String yellowUpper;

    @ApiModelProperty(value = "黄下限（一般风险）")
    private String yellowLower;

    @ApiModelProperty(value = "橙上限（较大风险）")
    private String orangeUpper;

    @ApiModelProperty(value = "橙下限（较大风险）")
    private String orangeLower;

    @ApiModelProperty(value = "红上限（重大风险）")
    private String redUpper;

    @ApiModelProperty(value = "红下限（重大风险）")
    private String redLower;

    @ApiModelProperty(value = "源id")
    private String srcId;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
